package com.aaa.three.service.impl;

import com.aaa.three.mapper.NewsConditionMapper;
import com.aaa.three.pojo.domain.NewsCondition;
import com.aaa.three.result.AjaxResult;
import com.aaa.three.service.NewsConditionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @Author: whf
 * @Date: 2022/2/19 9:57
 */
@Service
public class NewsConditionServiceImpl implements NewsConditionService {

    @Autowired
    private NewsConditionMapper newsConditionMapper;

    @Override
    public AjaxResult newsConditionList() {

        List<NewsCondition> newsConditionids = newsConditionMapper.newsConditionList();
        return AjaxResult.success(newsConditionids);

    }

}